﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="TotalNews.Models" %>
<div class="ja-mass ja-mass-top clearfix">
    <div class="ja-moduletable moduletable clearfix" id="Mod99">
        <div class="ja-box-ct clearfix">
            <a href="http://#vzdemo" title="">
                <img src="/Content/files/what-new-red.jpg" alt=""></a>
        </div>
    </div>
</div>
<div class="ja-moduletable moduletable clearfix" id="Mod93">
    <h3>
        <span>Giải trí nóng</span></h3>
    <div class="ja-box-ct clearfix">
        <div class="discussion-wrap clearfix">
            <div class="discussion-content">
                <img src="/Content/files/discussion.jpg" alt="" align="left">
                <h4>
                    <a href="#" title="Discussion">Iran appoints new judiciary head</a></h4>
                Ac Nunc tempor a eget et morbi Vivamus vitae nunc metus. Morbi feugiat neque tellus
                justo commodo hac lacinia gravida Curabitur Curabitur. Risus ut Phasellus eget Vivamus
                dis justo cursus semper <a class="comment" title="Comment" href="#">Comment</a>&nbsp;&nbsp;<a
                    class="video" title="Video" href="#">Video</a>&nbsp;&nbsp;<a class="photo" title="Slideshow"
                        href="#">Slideshow</a>
            </div>
        </div>
        <span class="author"><strong>Kí giả:</strong> Mr Đàm</span>
    </div>
</div>
<div class="ja-colswrap clearfix ja-r2">
    <div class="ja-col ja-right1 column">
        <div class="ja-moduletable moduletable clearfix" id="Mod85">
            <h3>
                <span>Tiêu điểm</span></h3>
            <div class="ja-box-ct clearfix">
            <%ItemRepository ir = new ItemRepository(); %>
            <%foreach (var item in ir.GetAllCategoriesById((int)ViewData["catId"]))
              {%>
                <div class="ja-innerdiv">
                    <h4>
                    <a href="/Item/News/<%=item.ID %>">
                       <%=item.CategoryName %></a> </h4>
                       
                       <%foreach (var sub in ir.GetOneItemByCateId((item.ID)))
                         {%>
                             <a href="/Item/Details/<%=sub.Id %>" > <img src="<%=sub.ImageUrl %>" alt="<%=sub.Title %>" style="width:170px;"/></a>
                   <%=sub.Title%> <a href="/Item/Details/<%=sub.Id %>" class="Read more..."
                        style="font-size: 92%;">Chi Tiết »</a>
                         <%} %>
                </div>  
              <%} %>
                
              <%--  <div class="ja-innerdiv">
                    <h4>
                        Thể thao</h4>
                    <img src="/Content/files/cat-2.jpg" alt="Obama">
                    Ipsum vel Phasellus ligula dis convallis eu risus consequat justo justo <a href="#"
                        class="Read more..." style="font-size: 92%;">Chi Tiết »</a>
                </div>
                <div class="ja-innerdiv">
                    <h4>
                        Giáo dục</h4>
                    <img src="/Content/files/cat-3.jpg" alt="Obama">
                    Ipsum vel Phasellus ligula dis convallis eu risus consequat justo justo <a href="#"
                        class="Read more..." style="font-size: 92%;">Chi Tiết »</a>
                </div>
                <div class="ja-innerdiv">
                    <h4>
                        Du lịch</h4>
                    <img src="/Content/files/cat-4.jpg" alt="Obama">
                    Ipsum vel Phasellus ligula dis convallis eu risus consequat justo justo <a href="#"
                        class="Read more..." style="font-size: 92%;">Chi Tiết »</a>
                </div>
                <div class="ja-innerdiv">
                    <h4>
                        Sức khỏe - Gia đình</h4>
                    <img src="/Content/files/cat-5.jpg" alt="Obama">
                    Ipsum vel Phasellus ligula dis convallis eu risus consequat justo justo <a href="#"
                        class="Read more..." style="font-size: 92%;">Chi Tiết »</a>
                </div>
                <div class="ja-innerdiv">
                    <h4>
                        Nhịp sống số</h4>
                    <img src="/Content/files/cat-6.jpg" alt="Technology">
                    Ipsum vel Phasellus ligula dis convallis eu risus consequat justo justo <a href="#"
                        class="Read more..." style="font-size: 92%;">Chi Tiết »</a>
                </div>--%>
            </div>
        </div>
    </div>
    <div class="ja-col ja-right2 column">
        <div class="ja-moduletable moduletable_menu clearfix" id="Mod1">
            <h3>
                <span>Main Menu</span></h3>
            <div class="ja-box-ct clearfix">
                <ul class="menu">
                    <li class="item1"><a href="http://#vzdemo"><span>Home</span></a></li><li class="item2">
                        <a href="http://#vzdemo"><span>Xã hội</span></a></li><li class="parent item53"><a
                            href="http://#vzdemo"><span>Thể thao</span></a></li><li class="item41"><a href="http://#vzdemo">
                                <span>Văn hóa Giải trí</span></a></li><li class="item467"><a href="http://#vzdemo"><span>
                                    Du lịch</span></a></li></ul>
            </div>
        </div>
        <div class="ja-moduletable moduletable_menu clearfix" id="Mod40">
            <h3>
                <span>Thông tin cần biết</span></h3>
            <div class="ja-box-ct clearfix">
                <ul class="menu">
                    <li class="item40"><a href="http://#vzdemo"><span>Giá vàng</span></a></li><li class="item38">
                        <a href="http://#vzdemo"><span>Tỉ giá</span></a></li><li class="item43"><a href="http://#vzdemo">
                            <span>Xổ số Kiến thiết</span></a></li></ul>
            </div>
        </div>
        <div class="ja-moduletable moduletable_menu clearfix" id="Mod31">
            <h3>
                <span>Liên kết</span></h3>
            <div class="ja-box-ct clearfix">
                <ul class="menu">
                    <li class="item11"><a href="http://www.tuoitre.com.vn"><span>Báo Tuổi Trẻ</span></a></li><li
                        class="item12"><a href="http://vietnamnet.vn"><span>Vietnamnet</span></a></li><li
                            class="item13"><a href="http://www.thanhnien.com.vn"><span>Báo Thanh Niên</span></a></li><li
                                class="item14"><a href="http://www.24h.com.vn"><span>24H</span></a></li><li class="item15">
                                    <a href="http://www.dantri.com.vn"><span>Báo Dân Trí</span></a></li><li class="item442">
                                        <a href="http://www.diembao.com"><span>Điểm báo</span></a></li><li class="item443"><a
                                            href="http://www.vnexpress.net"><span>VnExpress</span></a></li></ul>
            </div>
        </div>
        <div class="ja-moduletable moduletable clearfix" id="Mod21">
            <h3>
                <span>Ai đang trực tuyến?</span></h3>
            <div class="ja-box-ct clearfix">
                Hiện có 1000000000 người online
            </div>
        </div>
        <div class="ja-moduletable moduletable  clearfix" id="Mod98">
            <div class="ja-box-ct clearfix">
                <div class="bannergroup">
                    <div class="banneritem">
                        <a href="http://" target="_blank">
                            <img src="/Content/files/imgad-1.jpg" alt="Banner"></a><div class="clr">
                            </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="ja-mass ja-mass-bottom clearfix">
    <div class="ja-moduletable moduletable_text  clearfix" id="Mod38">
        <h3>
            <span>Quảng cáo</span></h3>
        <div class="ja-box-ct clearfix">
            <div class="bannergroup_text">
                <div class="bannerheader">
                    Links:</div>
                <div class="banneritem_text">
                    <a href="http://#vzdemo" target="_blank">Thuốc tăng trưởng con Gà Ác</a>
                    <br>
                    Ăn nhiều chóng lớn<div class="clr">
                    </div>
                </div>
                <div class="banneritem_text">
                    <a href="http://#vzdemo" target="_blank">Lửa Vịt</a>
                    <br>
                    Tàu du lịch con thoi giá rẻ.<div class="clr">
                    </div>
                </div>
                <div class="banneritem_text">
                    <a href="http://#vzdemo" target="_blank">Đầm Sen</a>
                    <br>
                    Xem cá sấu biểu diễn hút thuốc lào.<div class="clr">
                    </div>
                </div>
                <div class="banneritem_text">
                    <a href="http://#vzdemo" target="_blank">Cinemin</a>
                    <br>
                    Coi phin kinh dị.<div class="clr">
                    </div>
                </div>
                <div class="bannerfooter_text">
                    <a href="http://#vzdemo">Tài trợ bởi Google</a>
                </div>
            </div>
        </div>
    </div>
    <div class="ja-moduletable moduletable clearfix" id="Mod92">
        <div class="ja-box-ct clearfix">
            <img src="/Content/files/bmw-x5.jpg" alt="BMW-X5">
        </div>
    </div>
</div>
